package com.zhx.demo.reposirory;

import com.zhx.demo.entity.Leave;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 请假查询
 *
 * @author zhx
 * @create 2017-11-15 10:24
 **/
@Repository
@Transactional
public interface LeaveRepository extends JpaRepository<Leave,Long>{
    List<Leave> getLeaveByUserId(String userId);
}
